<div id="actionbar">
    <sapn url="{:url('info.tpl/edit')}" class="button button-blue fn-cp win"><i class="iconfont icon-add_icon"></i>创建模板</sapn>
</div>
<table class="table table-border">
<thead>
    <tr>
        <th class="fn-tac w80">#</th>
        <th>模板名称</th>
        <th class="fn-tac w120">允许下单</th>
        <th class="fn-tac w120">信息收集</th>
        <th class="fn-tac w120">发布模板</th>
        <th class="w140">更新时间</th>
        <th class="fn-tac w80">操作</th>
    </tr>
</thead>
<tbody>
{foreach $lists as $vo}
<tr>
    <td class="fn-tac">{$vo.id}</td>
    <td><sapn class="fn-cp win" url="{:url('info.tpl/edit',['id'=>$vo.id])}">{$vo['name']}</sapn></td>
    <td class="fn-tac">
        {if $vo.is_shop}
           <span class="badge bg-green">{$vo.button_name}</span>
        {else}
            <span class="badge">禁止</span>
        {/if}
    </td>
    <td class="fn-tac"><sapn class="button button-mini fn-cp win" url="{:url('info.tpl/users',['id'=>$vo.id])}"><i class="iconfont icon-edit"></i>收集模板</sapn></td>
    <td class="fn-tac"><sapn class="button button-mini fn-cp win" url="{:url('info.tpl/edit',['id'=>$vo.id])}"><i class="iconfont icon-edit"></i>发布模板</sapn></td>
    <td>{$vo.update_time|date='Y-m-d H:i'}</td>
    <td class="fn-tac">
        <a class="button button-mini isDel" url="{:url('infotpl/delete',['id'=>$vo.id])}" href="javascript:;"><i class="iconfont icon-lajixiang"></i>删除</a>
    </td>
</tr>
{/foreach}
</tbody>
</table>
{$lists|raw}
<script type="text/javascript">
Do('base','layer',function(){
    $('.isDel').isDel();
    $('.win').win({area:['800px', '450px'],reload:1});
})
</script>